

<jsp:include page="/templates/header.jsp"/>

<script type="text/javascript" src="/salonmorandsmigi/js/jquery.form.js"></script>
<script type="text/javascript" src="/salonmorandsmigi/js/jquery.validate.js"></script>
<script type="text/javascript" src="/salonmorandsmigi/js/sessions.js"></script>
<script type="text/javascript" src="/salonmorandsmigi/js/cparamcheck.js"></script>

	<h1>Add a new Course</h1>
	<form action="" method="GET" id="newCourse">
		<input type="hidden" name="action" value="add">
		Course name:
		<p><input type="text" name="name" id="name"></p>
		Description:
		<p><textarea rows="5" cols="50" name="description" id="description"></textarea></p>
		Credit points:
		<p><input type="text" name="credit" id="credit"></p>
		Course capacity:
		<p><input type="text" name="capacity" id="capacity"></p>
		Group Number:
		<p> <input type="text" name="gnum" id="gnum"></p>
		Sessions: <button id="addSession" type="button">+</button>
				  <button id="removeSession" type="button">-</button>
		<div id="session">
			<p>
			day: <select id="ses" name="ses1">
					<option id="sun" value="SUN">SUN</option>
					<option id="mon" value="MON">MON</option>
					<option id="tue" value="TUE">TUE</option>
					<option id="wed" value="WED">WED</option>
					<option id="thu" value="THU">THU</option>
					<option id="fri" value="FRI">FRI</option>
					<option id="sat" value="SAT">SAT</option>
				 </select> 
			start: <select id="start" name="start1">
				<%for (int i=8;i<=18;i++) {%>
					<option value="<%=i%>"><%=i%></option>
				<%} %>
				</select>
			end: <select id="end" name="end1">
				<%for (int i=8;i<=18;i++) {%>
					<option value="<%=i%>"><%=i%></option>
				<%} %>
				</select> 
			</p>	 
		</div>		  
		<p class="submit"><input type="submit" value="Add Course"></p> 
	</form>
	
	
<jsp:include page="/templates/sidebar.jsp"/>
<jsp:include page="/templates/footer.jsp"/>